package org.jeecg.modules.demo.ddyht.service.impl;

import org.jeecg.modules.demo.ddyht.entity.JxcCosting;
import org.jeecg.modules.demo.ddyht.entity.JxcCostingpici;
import org.jeecg.modules.demo.ddyht.mapper.JxcCostingMapper;
import org.jeecg.modules.demo.ddyht.service.IJxcCostingService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 成本核算
 * @Author: jeecg-boot
 * @Date:   2025-05-23
 * @Version: V1.0
 */
@Service
public class JxcCostingServiceImpl extends ServiceImpl<JxcCostingMapper, JxcCosting> implements IJxcCostingService {

    @Override
    public List<JxcCosting> getBycompany(String username) {
        return baseMapper.getBycompany(username);
    }

    @Override
    public String getamount(String day, String companyId) {
        return baseMapper.getamount(day, companyId);
    }

    @Override
    public String getnianamount(String day, String companyId) {
        return baseMapper.getnianamount(day, companyId);
    }

    @Override
    public String getyueamount(String day, String companyId) {
        return baseMapper.getyueamount(day, companyId);
    }

    @Override
    public List<JxcCostingpici> getByallId(String username, String id) {
        return baseMapper.getByallId(username, id);
    }

    @Override
    public List<JxcCostingpici> getBycompanyOr(String username, String orstate) {
        return baseMapper.getBycompanyOr(username, orstate);
    }
}
